package com.wk.code.wkserver.config.application;

import com.wk.code.wkserver.WkServerApplication;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.stereotype.Component;

/**
 * @author: wangqiang
 * @create: 2021-08-26 16:53
 */
@Component
public class WkSpringbootApplication {

    /**
     * 启动
     */
    public void start() {
        SpringApplication app = new SpringApplication(WkServerApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run();
    }
}
